package com.example.prison.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 *
 * @TableName device_info
 */
@TableName(value ="device_info")
@Data
public class DeviceInfo implements Serializable {
    /**
     * 设备ID
     */
    @TableId(value = "device_id", type = IdType.AUTO)
    private Integer deviceId;

    /**
     * 设备名称
     */
    @TableField(value = "device_name")
    private String deviceName;

    /**
     * 设备编号
     */
    @TableField(value = "device_number")
    private String deviceNumber;

    /**
     * 设备位置
     */
    @TableField(value = "position")
    private String position;

    /**
     * 设备状态（0关1开）
     */
    @TableField(value = "device_status")
    private Integer deviceStatus;

    /**
     * 设备类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 模块地址
     */
    @TableField(value = "module_address")
    private Integer moduleAddress;

    /**
     * IP地址
     */
    @TableField(value = "ip")
    private String ip;

    /**
     * 端口号
     */
    @TableField(value = "port")
    private Integer port;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
